import request from '../../utils/request';

export const fetchPageList = (query) => {
    return request({
        url: '/media/host/page',
        method: 'post',
        data: query
    })
}

export const menuList = (query) => {
    return request({
        url: '/media/host/menus',
        method: 'post',
        data: query
    })
}

export const saveHost = (query) => {
    return request({
        url: '/media/host/add',
        method: 'post',
        data: query
    })
}

export const editHost = (query) => {
    return request({
        url: '/media/host/edit',
        method: 'post',
        data: query
    })
}

export const deleteHost = (query) => {
    return request({
        url: '/media/host/delete',
        method: 'post',
        data: query
    })
}

export const getHostListByMenuId = (query) => {
    return request({
        url: '/media/host/hosts',
        method: 'post',
        data: query
    })
}
